package com.lx.entity;

import java.time.LocalDate;
import java.util.Date;

/**
 * @author c先生
 * @date 2022年03月31日 下午 7:34:16
 * @describe
 */

public class Film {
    private Integer filmId;//电影的编号
    private String filmName;//电影名称
    private String filmType;//电影类型
    private String filmTime;//时长
    private String filmActor;//主演
    private String filmIntro;//简介
    private LocalDate publicationTime;// 上映时间

    public Film() {
    }

    public LocalDate getPublicationTime() {
        return publicationTime;
    }

    public void setPublicationTime(LocalDate publicationTime) {
        this.publicationTime = publicationTime;
    }

    public Film(Integer filmId, String filmName, String filmType, String filmTime, String filmActor, String filmIntro, LocalDate publicationTime) {
        this.filmId = filmId;
        this.filmName = filmName;
        this.filmType = filmType;
        this.filmTime = filmTime;
        this.filmActor = filmActor;
        this.filmIntro = filmIntro;
        this.publicationTime = publicationTime;
    }

    public Integer getFilmId() {
        return filmId;
    }

    public void setFilmId(Integer filmId) {
        this.filmId = filmId;
    }

    public String getFilmName() {
        return filmName;
    }

    public void setFilmName(String filmName) {
        this.filmName = filmName;
    }

    public String getFilmType() {
        return filmType;
    }

    public void setFilmType(String filmType) {
        this.filmType = filmType;
    }

    public String getFilmTime() {
        return filmTime;
    }

    public void setFilmTime(String filmTime) {
        this.filmTime = filmTime;
    }

    public String getFilmActor() {
        return filmActor;
    }

    public void setFilmActor(String filmActor) {
        this.filmActor = filmActor;
    }

    public String getFilmIntro() {
        return filmIntro;
    }

    public void setFilmIntro(String filmIntro) {
        this.filmIntro = filmIntro;
    }


    @Override
    public String toString() {
        return "Film{" +
                "电影的编号：" + filmId +
                ", 电影名称：'" + filmName + '\'' +
                ", 电影类型：'" + filmType + '\'' +
                ", 时长：'" + filmTime + '\'' +
                ", 主演：'" + filmActor + '\'' +
                ", 简介：'" + filmIntro + '\'' +
                ", 上映时间：" + publicationTime +
                '}';
    }
}
